<?php
/**
 * @file
 * Returns the HTML for a wrapping container around comments.
 *
 * Complete documentation for this file is available online.
 * @see https://drupal.org/node/1728230
 */
// dsm($content['comments']);
// Render the comments and form first to see if we need headings.
$comments = render($content['comments']);
$comment_form = render($content['comment_form']);
?>
<section id="comments" class="comments <?php print $classes; ?>"<?php print $attributes; ?>>
  <?php print render($title_prefix); ?>
<!-- 
  <?php if ($comments && $node->type != 'forum'): ?>
    <h3 class="comments__title title"><?php print t('Comments'); ?></h3>
  <?php endif; ?>
 -->
  <?php print render($title_suffix); ?>


	<?php if ($comment_form): ?>
	<?php print $comment_form; ?>
	<?php endif; ?>

	<?php
		if($node->comment_count >= 1) {
	?>
	<div class="comments wrapper">

		<?php
		if($node->comment_count > 1) {
			print '<h3><span class="blue">' . $node->comment_count . '</span> Comments</h3>';
		} else if ($node->comment_count == 1) {
			print '<h3><span class="blue">' . $node->comment_count . '</span> Comment</h3>';
		} ?>
		<?php print $comments; ?>
	</div>
	<?php
		}
	?>
</section>
